<!--
 * @Author: your name
 * @Date: 2022-03-23 10:21:45
 * @LastEditTime: 2022-03-23 23:40:35
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \算法测试\day0906\3.23.html
-->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <h1 onclick="a()">吃饭了吗</h1>
    <script>
        function a() {
            console.log('吃了');
        }
        let h = document.getElementsByTagName("h1")[0];
        //h.onclick = a;
        console.log(Math.floor(-1.9));
        let num = new Number(3);
        console.log(num);

        console.log(Function.__proto__ === Function.prototype);

        function Person() {
            
        }
        let a1= new Person();
        console.log(Object.prototype.toString.call(a1));
        console.log(a1.__proto__ === Person.prototype);
        console.log(a1 instanceof Person);
        //console.log(Object.prototype.toString.call(a2));
    </script>
</body>

</html>